<?php

use App\Kuafu\Mqtt\Controller\Callback\MqttController;
use Illuminate\Support\Facades\Route;
use App\Kuafu\Dashboard\Controller\B\IndexController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () { return 'success'; });
Route::get('/web/index', [IndexController::class, 'index']);
Route::get('/web/login', [IndexController::class, 'login']);

Route::post('/callback/mqtt', [MqttController::class, 'messageAcked']);
